function UserInfo(desc) {
    var rolename = decodeURI(getQueryStringByName("rolename"));
    var source = decodeURI(getQueryStringByName("source"));
    location.href = "./end.html?role=" + rolename + "&desc=" + desc + "&source=" + source + "&v=" + Math.random();
}

$(function () {
    $(".ball-list-item").click(function () {
        var desc = $(this).find('.ball-list-item-two').attr("desc");
        window.setTimeout('UserInfo("' + desc + '")', 1000);
        UserInfo(desc);
    })
})

function getQueryStringByName(name) {
    var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
    if (result == null || result.length < 1) {
        return "";
    }
    return result[1];
}
